import Mock from 'mockjs';

Mock.mock(
  '/process/getService',
  'post',
  () => ({
    status: '200',
    message: 'success',
    data: [
      {
        serviceName: 'service1',
        interface: [
          {
            interfaceName: 'interface11',
            description: 'interfaceDescription11',
            url: 'interfaceUrl11',
            param: [
              {
                paramName: 'param111',
                type: 'String',
              },
              {
                paramName: 'param112',
                type: 'String',
              },
            ],
          },
          {
            interfaceName: 'interface12',
            description: 'interfaceDescription12',
            url: 'interfaceUrl12',
            param: [
              {
                paramName: 'param121',
                type: 'String',
              },
              {
                paramName: 'param122',
                type: 'String',
              },
              {
                paramName: 'param123',
                type: 'String',
              },
            ],
          },
          {
            interfaceName: 'interface13',
            description: 'interfaceDescription13',
            url: 'interfaceUrl13',
            param: [
              {
                paramName: 'param131',
                type: 'String',
              },
            ],
          },
        ],
      },
      {
        serviceName: 'service2',
        interface: [
          {
            interfaceName: 'interface21',
            description: 'interfaceDescription21',
            url: 'interfaceUrl21',
            param: [
              {
                paramName: 'param211',
                type: 'String',
              },
            ],
          },
        ],
      },
      {
        serviceName: 'service3',
        interface: [
          {
            interfaceName: 'interface31',
            description: 'interfaceDescription31',
            url: 'interfaceUrl31',
            param: [
              {
                paramName: 'param311',
                type: 'String',
              },
            ],
          },
          {
            interfaceName: 'interface32',
            description: 'interfaceDescription32',
            url: 'interfaceUrl32',
            param: [
              {
                paramName: 'param321',
                type: 'String',
              },
            ],
          },
          {
            interfaceName: 'interface33',
            description: 'interfaceDescription33',
            url: 'interfaceUrl33',
            param: [
              {
                paramName: 'param331',
                type: 'String',
              },
            ],
          },
        ],
      },
      {
        serviceName: 'service4',
        interface: [
          {
            interfaceName: 'interface41',
            description: 'interfaceDescription41',
            url: 'interfaceUrl41',
            param: [
              {
                paramName: 'param411',
                type: 'String',
              },
            ],
          },
          {
            interfaceName: 'interface42',
            description: 'interfaceDescription42',
            url: 'interfaceUrl42',
            param: [
              {
                paramName: 'param421',
                type: 'String',
              },
            ],
          },
        ],
      },
    ],
  }),

);
